package crmdna.list;

import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;

public class ListEntity {

	@Id
	long listId;

	@Index
	String name;

	String displayName;

	@Index
	long groupId;
	
	@Index boolean enabled;
	
	@Index boolean restricted;
		
	public ListProp toProp() {
		ListProp prop = new ListProp();
		prop.listId = listId;
		prop.name = name;
		prop.displayName = displayName;
		prop.groupId = groupId;
		prop.enabled = enabled;
		prop.restricted = restricted;
		
		return prop;
	}
}
